<include file="Public/min-header"/>
<div class="wrapper">
  <include file="Public/breadcrumb"/>
    <section class="content">
        <!-- Main content -->
        <div class="container-fluid">
            <div class="pull-right">                           		
            </div>
            <div class="panel panel-default">
                <div class="panel-heading">
                    <h3 class="panel-title"><i class="fa fa-list"></i>清除演示数据</h3>
                </div>
                <div class="panel-body">
                    <ul class="nav nav-tabs">
                        <li class="active"><a href="#tab_tongyong" data-toggle="tab">选择要清除的数据类型</a></li>
                    </ul>
                    <!--表单数据-->
                    <form method="post" id="cleanCache" onsubmit="return sb1();">                    
                        <!--通用信息-->
                    <div class="tab-content">                 	  
                        <div class="tab-pane active" id="tab_tongyong">
                           
                            <table class="table table-bordered">
                                <tbody>
                                <tr>
                                    <td>提示:</td>
                                    <td>
                                        <font style="color:#F00">谨慎操作，数据删除后不能恢复</font>
                                   
                                    </td>
                                </tr>                                  
                                <tr>
                                    <td>数据类型:</td>
                                    <td>
                                        <input type="checkbox" name="clear[]" value="user" /> 会员数据
                                        <input type="checkbox" name="clear[]" value="goods" /> 商品数据
                                        <input type="checkbox" name="clear[]" value="category" /> 商品分类
                                        <input type="checkbox" name="clear[]" value="huodong" /> 商品活动
                                        <input type="checkbox" name="clear[]" value="article" /> 文章数据
                                        <input type="checkbox" name="clear[]" value="order" /> 订单数据
										<input type="checkbox" name="clear[]" value="caiwu" /> 财务数据
										<input type="checkbox" name="clear[]" value="shop" /> 店铺数据
                                    </td>
                                </tr>
                                <tr>
                                    <td>管理员密码:</td>
                                    <td>
                                        <input type="password" name="password" value="" />
                                    </td>
                                </tr> 								
                                <tr>
                                    <td>清除所有:</td>
                                    <td>                                        
                                        <input type="checkbox" id="cacheAll"  onclick="$('input[name*=\'clear\']').prop('checked', this.checked);"/> 所有
                                    </td>
                                </tr>                                
                                </tbody>                                
                                </table>
                        </div>                           
                    </div>              
                    <div class="pull-right">
                        <button class="btn btn-primary" type="submit" >提交</button>
                    </div>
			    </form><!--表单数据-->
                </div>
            </div>
        </div>    <!-- /.content -->
    </section>
</div> 
<script>
function sb1(){
    if(confirm("谨慎操作，数据删除后不能恢复，您确认吗？")){
        return true;
    }else{
		return false;
	}
}
</script> 
</body>
</html>